<div id="tabs_reports">
	<ul>
		<li></li>
		<!-- TODO: Restore pending reports grid view based on role -->
     	<%if not current_user.is_only_xb?%><li class="off"><%= link_to _("<span>Pending Reports</span>"), 'pending' %></li><%end%>
        <li class="on"><span><%= _('Completed Reports') %></span></li>
		<% if current_user.is_admin? %>
			<li class="button1"><%= link_to '<span/>', 'new' %></li>
		<% end %>
	</ul>
</div>
 
<div class="clear"></div>
 
<div id="maintable">
		<%= render :partial => 'reports', :collection => @reports_groups, :as => :reports , :locals => {:download_col => true} %>
		<% if current_user.is_admin %>
			<% unless current_user.is_only_admin? then %> <span class="title_one"><%= _('All Reports') %></span> <% end %>
			<%= render :partial => 'admin_reports', :locals => { :reports => @all_reports_groups } %>
		<% end %>
</div>	
 
<%content_for :footer do%>
	<% if current_user.is_only_xb? %>
		<div id ="back_footer">
			<%= link_to image_tag("/images/b_back_report_management.gif"), :action => 'index' %>
		</div>
	<% end %>
<%end%>